//请求接口方法集合
import {get, post } from "./request.js";


//登录接口
export const login = params => post('/user/login', params);


/**
 * 首页
 */
//总量分析
export const getHomeCount = params => get('/analysis/home/count', params);
//获取人才流动情况
export const getHomeFlow = params => get('/analysis/home/flow', params);
//获取首页人员情况
export const getHomeDeptNumber = params => get('/analysis/home/deptNumber', params);

/**
 * 资本月报
 */
//人力资源
export const getMonthlyHrSource = params => get('/analysis/monthlyReport/hrSource', params);
//绩效月报
export const getMonthlyPerfScore = params => get('/analysis/monthlyReport/perfScore', params);


/**
 * 招聘分析
 */
//招聘人数分析
export const getRecruitNumber = params => get('/analysis/recruit/number', params);
//招聘来源
export const getRecruitSource = params => get('/analysis/recruit/source', params);
//部门性别在职比例
export const getRecruitSex = params => get('/analysis/recruit/sex', params);

/**
 * 人力分析
 */
//员工学历分布
export const getHrEducation = params => get('/analysis/hr/education', params);
//工资进度
export const getHrSalary = params => get('/analysis/hr/salary', params);
//部门平均工资
export const getHrDeptSalary = params => get('/analysis/hr/deptSalary', params);

/**
 * 人才分析
 */
export const getEducation = params => get('/analysis/talent/education', params);
export const getEduAvgSalary = params => get('/analysis/talent/eduAvgSalary', params);